import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import pinia from './store'
import 'vant/lib/index.css'
import { Button, Form, Field, CellGroup, Tabbar, TabbarItem, NavBar, Cell, Icon, 
  List, PullRefresh, Image as VanImage, Card, Toast, Dialog, DatePicker, Rate, Calendar, Tag, Loading } from 'vant'

const app = createApp(App)

// 注册Vant组件
const vantComponents = [
  Button, Form, Field, CellGroup, Tabbar, TabbarItem, NavBar, Cell, Icon, 
  List, PullRefresh, VanImage, Card, Toast, Dialog, DatePicker, Rate, Calendar, Tag, Loading
]
vantComponents.forEach(component => {
  app.use(component)
})

app.use(router)
app.use(pinia)
app.mount('#app')
